package com.service.auth.client;

import com.service.utils.ResultVo;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;

@FeignClient("service-user")
public interface UcenterMemberClient {

    /**
     * 查询指定的用户信息
     * @param id
     * @return
     */
    @GetMapping("user/{id}")
    public ResultVo queryById(@ApiParam(name = "id",value = "指定查询的用户ID",required = true) @PathVariable String id);

    @PostMapping("user/login")
    public ResultVo login(@ApiParam(name = "mobile",value = "手机号",required = true)   @RequestParam("mobile") String mobile,
                          @ApiParam(name = "password",value = "密码",required = true)        @RequestParam("password") String password);


}
